import {CalendarProps} from "react-native-calendars";
import {Action} from "@/types/utils";

export interface KCalendarProps extends CalendarProps {
    activeTextColor?: string;//激活的文本颜色
    activeBgColor?: string;//激活的背景颜色
    language?: string;
    onSelect?: (dates: string[]) => void;
}

export interface CalendarPopupProps extends KCalendarProps {
    dispatch: (action: Action) => void;
    isVisible: boolean;
    title?: string;
    confirmText?: string;
    onConfirm: (dates: string[]) => void;
    onCancel?: () => void;
    cancelText?: string;
}